Skip to content

Add x/escrow - #2

Merged
0Tech merged 62 commits into
mainfrom
1-add-xescrow
Feb 15, 2024
Merged

Add x/escrow#2
0Tech merged 62 commits into
mainfrom
1-add-xescrow

Conversation

@0Tech

@0Tech 0Tech commented Jan 24, 2024

Copy link
Copy Markdown
Owner

Summary by CodeRabbit

  • New Features
    • Introduced an escrow module facilitating secure transactions between multiple parties.
    • Added Docker support for running binaries and development tasks.
    • Implemented GitHub Actions workflow for automated linting, building, testing, and formatting.
  • Enhancements
    • Added support for managing Go projects with CMake.
    • Enhanced project setup with options for color output and test configurations.
  • Documentation
    • Updated README.md files with project descriptions and module information.
  • Bug Fixes
    • Added the /build directory to .gitignore to prevent tracking build artifacts.
  • Tests
    • Added extensive testing for the escrow module, including action execution and proposal submission.
  • Chores
    • Improved linting configurations for Go projects with specific settings for various linters.

@0Tech 0Tech linked an issue Jan 24, 2024 that may be closed by this pull request
@0Tech 0Tech self-assigned this Jan 24, 2024
@0Tech
0Tech force-pushed the 1-add-xescrow branch 16 times, most recently from f3bd2ec to c9b971f Compare January 25, 2024 04:01

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Status

Actionable comments generated: 2

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between ea8ef4e and dc34bec.
Files selected for processing (21)
  • .github/workflows/module.yml (1 hunks)
  • CMakeLists.txt (1 hunks)
  • builders/CMakeLists.txt (1 hunks)
  • builders/bare/CMakeLists.txt (1 hunks)
  • builders/bare/install/CMakeLists.txt (1 hunks)
  • builders/bare/install/buf.cmake (1 hunks)
  • builders/bare/install/common.cmake (1 hunks)
  • builders/bare/install/go.cmake (1 hunks)
  • builders/bare/install/golangci-lint.cmake (1 hunks)
  • builders/bare/install/protoc-gen-go-grpc.cmake (1 hunks)
  • builders/bare/install/protoc-gen-go-pulsar.cmake (1 hunks)
  • builders/bare/install/protoc-gen-go.cmake (1 hunks)
  • builders/bare/install/protoc-gen-gocosmos.cmake (1 hunks)
  • builders/bare/install/protoc-gen-grpc-gateway.cmake (1 hunks)
  • builders/bare/targets/CMakeLists.txt (1 hunks)
  • builders/docker/CMakeLists.txt (1 hunks)
  • builders/docker/install/CMakeLists.txt (1 hunks)
  • builders/docker/install/Dockerfile.in (1 hunks)
  • builders/docker/install/docker-build.cmake (1 hunks)
  • builders/docker/targets/CMakeLists.txt (1 hunks)
  • builders/docker/targets/docker-run.cmake (1 hunks)
Files skipped from review as they are similar to previous changes (2)
  • .github/workflows/module.yml
  • CMakeLists.txt
Additional comments: 17
builders/bare/CMakeLists.txt (1)
  • 1-2: LGTM!
builders/docker/CMakeLists.txt (1)
  • 1-2: LGTM!
builders/docker/install/docker-build.cmake (1)
  • 1-6: Ensure ${IDFILE} is defined before executing this script.
builders/docker/targets/docker-run.cmake (1)
  • 1-6: Ensure ${IDFILE}, ${SOURCE_DIR_SRC}, ${SOURCE_DIR_DST}, ${BINARY_DIR_SRC}, and ${BINARY_DIR_DST} are defined before executing this script.
builders/bare/install/protoc-gen-gocosmos.cmake (1)
  • 1-19: Ensure VERSION is defined and common.cmake correctly sets up the environment for this script.
builders/bare/install/protoc-gen-go-pulsar.cmake (1)
  • 1-19: Ensure VERSION is defined and common.cmake correctly sets up the environment for this script.
builders/bare/install/protoc-gen-grpc-gateway.cmake (1)
  • 1-19: Ensure VERSION is defined and common.cmake correctly sets up the environment for this script.
builders/bare/install/buf.cmake (1)
  • 1-29: Ensure VERSION is defined and common.cmake correctly sets up the environment for this script.
builders/bare/install/protoc-gen-go.cmake (1)
  • 1-30: Ensure VERSION is defined and common.cmake correctly sets up the environment for this script.
builders/bare/install/protoc-gen-go-grpc.cmake (1)
  • 1-30: Ensure VERSION is defined and common.cmake correctly sets up the environment for this script.
builders/bare/install/golangci-lint.cmake (1)
  • 1-31: Ensure VERSION is defined and common.cmake correctly sets up the environment for this script.
builders/bare/install/common.cmake (1)
  • 1-27: LGTM!
builders/docker/install/Dockerfile.in (1)
  • 1-29: LGTM!
builders/docker/install/CMakeLists.txt (1)
  • 1-26: Ensure ${CMAKE_CURRENT_SOURCE_DIR}/docker-build.cmake exists and is correctly set up for this context.
builders/docker/targets/CMakeLists.txt (1)
  • 1-64: LGTM!
builders/bare/install/CMakeLists.txt (1)
  • 1-73: LGTM!
builders/bare/targets/CMakeLists.txt (1)
  • 1-155: LGTM!

Comment thread builders/CMakeLists.txt
Comment thread builders/bare/install/go.cmake Outdated

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between dc34bec and 81e51b4.
Files selected for processing (2)
  • x/escrow/keeper/internal/keeper_test.go (1 hunks)
  • x/escrow/keeper/internal/proposal.go (1 hunks)
Files skipped from review as they are similar to previous changes (2)
  • x/escrow/keeper/internal/keeper_test.go
  • x/escrow/keeper/internal/proposal.go

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 81e51b4 and c4f0d32.
Files selected for processing (5)
  • .github/workflows/module.yml (1 hunks)
  • .github/workflows/modules.yml (1 hunks)
  • builders/docker/install/CMakeLists.txt (1 hunks)
  • builders/docker/install/Dockerfile (1 hunks)
  • builders/docker/install/docker-build.cmake (1 hunks)
Files skipped from review as they are similar to previous changes (3)
  • .github/workflows/module.yml
  • builders/docker/install/CMakeLists.txt
  • builders/docker/install/docker-build.cmake
Additional comments: 2
.github/workflows/modules.yml (1)
  • 1-21: The workflow file correctly defines a job matrix for module checks, including the new escrow module. Ensure that SONAR_TOKEN_X_ESCROW is properly set in the repository's secrets.
builders/docker/install/Dockerfile (1)
  • 1-29: The Dockerfile follows best practices with a multi-stage build, minimizing layers, and setting up a non-root user for security. Ensure that the UID and GID build arguments are provided during the build process.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 81e51b4 and d2870ff.
Files ignored due to path filters (2)
  • x/escrow/proto/buf.yaml is excluded by: !**/*.yaml
  • x/test/proto/buf.yaml is excluded by: !**/*.yaml
Files selected for processing (5)
  • .github/workflows/module.yml (1 hunks)
  • .github/workflows/modules.yml (1 hunks)
  • builders/docker/install/CMakeLists.txt (1 hunks)
  • builders/docker/install/Dockerfile (1 hunks)
  • builders/docker/install/docker-build.cmake (1 hunks)
Files skipped from review as they are similar to previous changes (5)
  • .github/workflows/module.yml
  • .github/workflows/modules.yml
  • builders/docker/install/CMakeLists.txt
  • builders/docker/install/Dockerfile
  • builders/docker/install/docker-build.cmake

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Status

Actionable comments generated: 11

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between d2870ff and 57ba778.
Files selected for processing (6)
  • x/escrow/keeper/internal/genesis_test.go (1 hunks)
  • x/escrow/keeper/internal/grpc_query_test.go (1 hunks)
  • x/escrow/keeper/internal/keeper_test.go (1 hunks)
  • x/escrow/keeper/internal/msg_server_test.go (1 hunks)
  • x/escrow/keeper/internal/proposal_test.go (1 hunks)
  • x/escrow/module/autocli.go (1 hunks)
Files skipped from review as they are similar to previous changes (4)
  • x/escrow/keeper/internal/genesis_test.go
  • x/escrow/keeper/internal/keeper_test.go
  • x/escrow/keeper/internal/msg_server_test.go
  • x/escrow/module/autocli.go

Comment thread x/escrow/keeper/internal/proposal_test.go
Comment thread x/escrow/keeper/internal/proposal_test.go Outdated
Comment thread x/escrow/keeper/internal/proposal_test.go
Comment thread x/escrow/keeper/internal/proposal_test.go Outdated
Comment thread x/escrow/keeper/internal/proposal_test.go Outdated
Comment thread x/escrow/keeper/internal/grpc_query_test.go
Comment thread x/escrow/keeper/internal/grpc_query_test.go
Comment thread x/escrow/keeper/internal/grpc_query_test.go
Comment thread x/escrow/keeper/internal/grpc_query_test.go
Comment thread x/escrow/keeper/internal/grpc_query_test.go

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Status

Actionable comments generated: 5

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 57ba778 and 4fc5ea9.
Files selected for processing (8)
  • app/.golangci.yaml (1 hunks)
  • builders/bare/install/CMakeLists.txt (1 hunks)
  • builders/bare/install/go.cmake (1 hunks)
  • cmd/and/.golangci.yaml (1 hunks)
  • x/escrow/.golangci.yaml (1 hunks)
  • x/escrow/keeper/internal/agent_test.go (1 hunks)
  • x/escrow/keeper/internal/genesis_test.go (1 hunks)
  • x/escrow/keeper/internal/proposal_test.go (1 hunks)
Files skipped from review as they are similar to previous changes (4)
  • builders/bare/install/CMakeLists.txt
  • builders/bare/install/go.cmake
  • x/escrow/keeper/internal/genesis_test.go
  • x/escrow/keeper/internal/proposal_test.go
Additional comments: 7
app/.golangci.yaml (2)
  • 19-27: The custom order for imports specified in gci linter settings is good for maintaining consistency. Verify that the specified prefixes align with the project's dependencies.
  • 28-38: depguard settings correctly specify allowed dependencies. Ensure that all necessary dependencies are included and that the list is up-to-date with the project's requirements.
cmd/and/.golangci.yaml (2)
  • 19-27: The custom order for imports specified in gci linter settings is good for maintaining consistency. Verify that the specified prefixes align with the project's dependencies.
  • 28-40: depguard settings correctly specify allowed dependencies for the cmd/and directory, including CLI-specific libraries. Ensure that all necessary dependencies are included and that the list is up-to-date with the project's requirements.
x/escrow/.golangci.yaml (3)
  • 3-7: Skipping generated files and mocks in linting is a good practice. Verify that all patterns for skipped files match the project's file naming conventions.
  • 25-33: The custom order for imports specified in gci linter settings is good for maintaining consistency. Verify that the specified prefixes align with the project's dependencies.
  • 34-59: depguard settings correctly specify allowed dependencies for both main and test files. Ensure that all necessary dependencies are included and that the list is up-to-date with the project's requirements.

Comment thread app/.golangci.yaml
Comment thread cmd/and/.golangci.yaml
Comment thread x/escrow/keeper/internal/agent_test.go
Comment thread x/escrow/keeper/internal/agent_test.go
Comment thread x/escrow/.golangci.yaml

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 4fc5ea9 and fcc9900.
Files selected for processing (2)
  • x/escrow/keeper/internal/keeper_test.go (1 hunks)
  • x/escrow/keeper/internal/proposal_test.go (1 hunks)
Files skipped from review as they are similar to previous changes (2)
  • x/escrow/keeper/internal/keeper_test.go
  • x/escrow/keeper/internal/proposal_test.go

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed for '0tech_andromeda_x-test'

Issues
0 New issues

Measures
0 Security Hotspots
84.6% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed for '0tech_andromeda_x-escrow'

Issues
1 New issue

Measures
0 Security Hotspots
81.2% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

@0Tech 0Tech mentioned this pull request Feb 15, 2024
@0Tech
0Tech merged commit f405ccd into main Feb 15, 2024
@0Tech 0Tech added documentation Improvements or additions to documentation enhancement New feature or request labels Feb 16, 2024
@0Tech 0Tech mentioned this pull request Feb 16, 2024
0Tech added a commit that referenced this pull request Feb 28, 2024
* Update x/test README.md

* Update x/escrow README.md

* Update cosmos-sdk links

* Improve abstract and add more examples

* Fix section depth

* Use colons

* Add go report cards

* Add a status badge of `Check Modules`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add x/escrow

1 participant